/**
 * 
 */
package com.sc.softmgr.business.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.acc.softmgr.model.SysGray;
import com.acc.softmgr.model.SysGrayExample;
import com.sc.softmgr.business.dao.ISysGrayDao;
import com.sc.softmgr.business.service.ISysGrayService;

/**
 * 
 * @content
 * 
 * @date Mon Jun 19 16:22:06 CST 2017
 * 
 * @author OprCalf
 * 
 */
@Service
public class SysGrayServiceImpl implements ISysGrayService {

	@Autowired
	private ISysGrayDao sysGrayDao;

	@Override
	public long countByExample(SysGrayExample example) {
		return sysGrayDao.countByExample(example);
	}

	@Override
	public int deleteByExample(SysGrayExample example) {
		return sysGrayDao.deleteByExample(example);
	}

	@Override
	public int deleteByPrimaryKey(Integer id) {
		return sysGrayDao.deleteByPrimaryKey(id);
	}

	@Override
	public int insert(SysGray record) {
		return sysGrayDao.insert(record);
	}

	@Override
	public int insertSelective(SysGray record) {
		return sysGrayDao.insertSelective(record);
	}

	@Override
	public int insertList(List<SysGray> records) {
		for (SysGray record : records) {
			insert(record);
		}
		return 1;
	}

	@Override
	public List<SysGray> selectByExample(SysGrayExample example) {
		return sysGrayDao.selectByExample(example);
	}

	@Override
	public SysGray selectByPrimaryKey(Integer id) {
		return sysGrayDao.selectByPrimaryKey(id);
	}

	@Override
	public int updateByExampleSelective(SysGray record, SysGrayExample example) {
		return sysGrayDao.updateByExampleSelective(record, example);
	}

	@Override
	public int updateByExample(SysGray record, SysGrayExample example) {
		return sysGrayDao.updateByExample(record, example);
	}

	@Override
	public int updateByPrimaryKeySelective(SysGray record) {
		return sysGrayDao.updateByPrimaryKeySelective(record);
	}

	@Override
	public int updateByPrimaryKey(SysGray record) {
		return sysGrayDao.updateByPrimaryKey(record);
	}

}
